﻿<%@ Page Language="C#" %>
<%@ Import Namespace="RssEasy.Core" %>
<%@ Import Namespace="RssEasy.Dal" %>
<%@ Import Namespace="LocalDAL" %>
<%
    HttpRequestHelper req = new HttpRequestHelper().request();

    string returndata = req.toQueryString();
    PayOrderList entity = new PayOrderList();
    entity.select("appid,orderid").where("id=@id", req["out_trade_no"]).get_first_rows();

    PayConfigList config = new PayConfigList();
    if (config.select("return_url").where("appid=@appid", entity["appid"]).get_first_rows())
    {
        Response.Redirect("http://" + config["return_url"] + "?orderid=" + entity["orderid"] + "&" + returndata);
    }
%>